<script type="text/javascript">
msgDelCategory = {
    msg : "<?= $this->translate('msgDelCategory')?>",
    boxTitle : "<?= $this->translate('titleDelCategory')?>",
    msgStatus: "<?= $this->translate('statusDel')?>"
};
</script>

<div class="boxList">
<?foreach ($this->categories as $category):?>
    <ul id="ulBoxList-<?=$category->oid?>" class="ulBoxList">
        <li class="liContentInfoBox">
            <div class="liCNContent"><?= $category->name?></div>
            <div class="liCDContent"><?= $category->description?></div>
        </li>
        <li class="liboxbar">
            <div class="boxbar">
                <ul class="ulboxbar">
                    <li class="liItemboxbar separatorItemBar">
                        <img class="imgItemboxbar separatorImageBar" alt="Delete" src="../img/boxbar/cancelgrey.png" />
                        <a id="delete-<?=$category->oid?>" 
                           class="aItemboxbar" 
                           href="javascript:deleteCategory('<?=$category->oid?>','/category/deletecategory',msgDelCategory);">
                           <?= $this->translate('delete')?>
                        </a>
                    </li>
                </ul>
            </div>
        </li>
    </ul>
<?endforeach?>
<div class="paginator">
<?= $this->paginationControl($this->categories,
                                    'Sliding',
                                    'paginatorcontrols/searchcontrol.phtml'); ?>
                                    
<?if(sizeof($this->categories) == 0):?>
	<p class="OrangeColor">
	    <i><?= $this->translate('noResult')?></i>
	</p>
<?endif?>                                    
</div>
</div>